package com.framework;

import com.framework.plugin.xmlsql.XmlSqlPlugin;
import com.framework.web.IndexAction;
import com.jfinal.config.Constants;
import com.jfinal.config.Handlers;
import com.jfinal.config.Interceptors;
import com.jfinal.config.JFinalConfig;
import com.jfinal.config.Plugins;
import com.jfinal.config.Routes;
import com.jfinal.render.ViewType;

public class Config extends JFinalConfig {

	@Override
	public void configConstant(Constants me) {
		me.setBaseViewPath("/WEB-INF/jsp/");
		me.setDevMode(true);
		me.setEncoding("utf-8");
		me.setViewType(ViewType.JSP);
	}

	@Override
	public void configRoute(Routes me) {
		me.add("/", IndexAction.class);
	}

	@Override
	public void configPlugin(Plugins me) {
		XmlSqlPlugin xsp = new XmlSqlPlugin();
		xsp.start();
	}

	@Override
	public void configInterceptor(Interceptors me) {
		
	}

	@Override
	public void configHandler(Handlers me) {
		
	}

}
